<template>
	<view>
		<view class="model-container" @click="logintip"  :class="[globalislogin?'model_show':'model_hidden']">
		</view>
	</view>
</template>

<script>
	/**
	 * 全局登陆遮罩
	 */
	export default {
		props: {
			globalislogin: {
				type: Boolean,
				default: false
			}
		},
		methods:{
			
			logintip(){
				this.$Userlogin()
			}
		}
	}
</script>

<style lang="scss">
	.model-container{
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 9999;
		// background-color: rgba(#000,0.2);
	}
	.model-contents {
		background-color: #fff;
		width: 80%;
		border-radius: 15rpx;
		display: flex;
		flex-direction: column;
		padding: 25rpx;
		padding-top:0 ;
		font-size: 25rpx;
	}
	
	.model_show {
		visibility: visible;
	}
	
	.model_hidden {
		visibility: hidden;
	
	}
</style>
